home *** CD-ROM | disk | FTP | other *** search
/ USA Bestseller / USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso / e092 / surf09.doc < prev    next >
Text File  |  1992-06-15  |  18KB  |  388 lines

  1. ****************************************************************************
  2.  Surf                        Version 0.9 (beta)                   June 1992
  3.  --------------------------------------------------------------------------
  4.                   WAV audio file toolbox for Windows 3.1
  5. ****************************************************************************
  6.  
  7.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8.       ~                                                               ~
  9.       ~     Surf is Shareware.  If you use Surf for more than 10      ~
  10.       ~     days, you must register.                                  ~
  11.       ~                                                               ~
  12.       ~     You can register Surf two ways:                           ~
  13.       ~                                                               ~
  14.       ~     1. A License number for this version...........$10.00     ~
  15.       ~                                                               ~
  16.       ~     2. To have the latest version shipped to you...$15.00     ~
  17.       ~                                                               ~
  18.       ~                                                               ~
  19.       ~     Print out and send in the ORDER.FRM file to register.     ~
  20.       ~                                                               ~
  21.       ~     Please include $2.00 for shipping outside the U.S.        ~
  22.       ~                                                               ~
  23.       ~     Please send checks or money orders in U.S. dollars only   ~
  24.       ~                                                               ~
  25.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26.       ~                    Thanks for trying Surf!                    ~
  27.       ~                                                               ~
  28.       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  29.  
  30.  
  31.  Introduction
  32.  ------------
  33.  
  34.  Surf is designed to be a toolbox for modifying and editing Windows 3.1
  35.  WAV files.  You'll need Windows 3.1 and a sound device capable of digital
  36.  output (e.g. SoundBlaster, Pro Audio Spectrum, Adlib Gold, etc).  Regular
  37.  Adlib cards cannot play WAV files.  There is a driver for the built-in
  38.  speaker inside your PC that was released after Windows 3.1.  The quality
  39.  is poor, but it is free from Microsoft.
  40.  
  41.  Surf is designed to be fun and useful.  I've tried to leave out the tech-
  42.  nical details wherever possible.  I'm planning a much more technical 
  43.  version if Surf is successful.  Alot of people won't understand if you
  44.  say "inverting the sample", but if you say "sounds like playing in a
  45.  garage", they get the idea.  I'm by no means an expert, and this is a good
  46.  place to thank Jason Bell (my brother) and Na'im Ru for explanations,
  47.  ideas, and even some source code.
  48.  
  49.  This is a beta copy of Surf and you'll notice that alot of "regular"
  50.  features are missing.  Surf has no way to delete portions of a WAV, mix,
  51.  or insert other files, etc.  These are of course in the works for future
  52.  versions of Surf, but it seemed smarter to work on neat effects rather than
  53.  editing functions.  For the moment you can use Windows' Sound Recorder
  54.  for most (albeit crude) editing functions.  Surf is also currently
  55.  limited to 8-bit monophonic sound editing.
  56.  
  57.  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  58.  %                                                                        %
  59.  %  If you have an idea for a function for Surf, drop me a line.          %
  60.  %  My address is:                                                        %
  61.  %                                                                        %
  62.  %     James Bell                                                         %
  63.  %     4511 Sherwood Trace          Phone: (904) 372-3695                 %
  64.  %     Gainesville, FL  32605    Internet: jb1@cis.ufl.edu                %
  65.  %                                                                        %
  66.  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  67.  
  68.  Surf is a file-based toolbox, which means that WAV files are never held
  69.  in memory (except partially, during playback), so the only limitation on
  70.  WAV file size is the size of your hard drive.
  71.  
  72.  
  73.  Using Surf
  74.  ----------
  75.  
  76.  To start up Surf, just copy the SURF.EXE file onto your hard drive and
  77.  use Program Manager or File Manager to run SURF.EXE.
  78.  
  79.  You should see the Surf window appear with a status bar at the bottom.
  80.  
  81.  Choose "File...Open" and select a WAV file for editing.
  82.  
  83.  The status bar will display information about the WAV file you opened,
  84.  and will look something like this:
  85.  
  86.  +----------------------------------------------------------------------+
  87.  | File opened      22050 Hz (8-bit mono)     1.1 seconds (24255 bytes) |
  88.  +----------------------------------------------------------------------+
  89.  
  90.  
  91.  
  92.  Interpreting the status bar
  93.  ---------------------------
  94.  
  95.  The "22050 Hz" refers to the "Sample Rate" of the WAV file.  This is the
  96.  number of samples that were collected in one second during recording.
  97.  For 8-bit recordings, a "sample" is one byte.
  98.  
  99.  You can verify the numbers for playback time ("1.1 seconds") and number
  100.  of bytes ("24255 bytes") with a little math:
  101.  
  102.           (1.1 seconds) X (22050 samples/second) = 24255 samples
  103.  
  104.  
  105.  You may hear of sample rates in the kilohertz (kHz), so note that
  106.  "1000 Hz" is the same as "1 kHz".
  107.                            
  108.  For various (technical) reasons the sample rate determines the highest
  109.  frequency of sound that can be reproduced.  The sample rate must be
  110.  twice as high as the highest frequency to be recorded or played back.
  111.  
  112.  For reference, most people's speaking pitch is below 5000 Hz, and most of
  113.  us cannot hear tones over 20,000 Hz.  Below are some common sample rates:
  114.  
  115.   Sample Rate   Highest Freq.   Comment
  116.   -----------   -------------   ----------------------------------------
  117.   4000  Hz      2000  Hz        The slowest possible sample rate for
  118.                                 many common sound devices*.
  119.  
  120.   11025 Hz      5512  Hz        A common sample rate (1/4 of CD rate).
  121.  
  122.   12000 Hz      6000  Hz        Highest possible (recording) sample rate
  123.                                 for many common sound devices.
  124.  
  125.   22050 Hz      11025 Hz        A common sample rate (1/2 of CD rate).
  126.  
  127.   23000 Hz      11500 Hz        Highest possible (playback) sample rate
  128.                                 for many common sound devices.
  129.  
  130.   44100 Hz      22050 Hz        Sample rate for CD-quality sound.
  131.  
  132.  
  133.                             * "common" = Creative Labs' SoundBlaster card
  134.  
  135.  
  136.  Playing with Surf
  137.  -----------------
  138.  
  139.  Once you have your sound file open, you're ready to start modifying the
  140.  sound.
  141.  
  142.  There is a "button-bar" for easy access to many of the functions below.
  143.  
  144.  Here are some of the things you can do with Surf:
  145.  
  146.    Show      - You can view the WAV file you're working on in three ways,
  147.                all three views scale themselves to the current window size:
  148.  
  149.                The "Current" choice on the "Show" menu is the quickest way
  150.                to look at the sound.  It will select 1 sample out of several
  151.                and draw it as one line on the screen.
  152.  
  153.                The "Compare" choice shows you the current sound as well as
  154.                the previous one.  This will let you compare, for example,
  155.                the original samples with the sound after you've added echo.
  156.  
  157.                The "Extended" choice is slow, but gives a more accurate
  158.                picture of the sound samples.  It draws ALL the samples (on
  159.                top of one another if necessary) in the window.
  160.  
  161.  
  162.    Play      - This (of course) plays the current sound.  You can restart
  163.                the playback by selecting Play again before the sample
  164.                finishes.  The playback is in the background, so you can
  165.                continue editing while it is playing.
  166.  
  167.    Undo      - This will "undo" the last function.  After you undo, you can
  168.                "redo" if you change your mind again.
  169.  
  170.  
  171.    ReOpen    - This will reopen the original file you started working with,
  172.                effectivly throwing out your changes to the file.
  173.  
  174.  
  175.    Save      - Lets you save your all your changes to a WAV file.
  176.  
  177.  
  178.    Add Echo  - You can add three levels of artifical echo to your samples.
  179.  
  180.                The "Short" echo repeats about every 0.15 seconds and sounds
  181.                like talking in a large room.  This kind of echo is usually
  182.                called "reverb".
  183.  
  184.                The "Medium" echo repeats about every 0.25 seconds and it
  185.                sounds like the echo on a stadium P.A. system.
  186.  
  187.                The "Long" echo repeats about every 0.60 seconds and it is
  188.                like the echo you hear if you shout from a mountaintop.
  189.  
  190.                                                                  
  191.    Volume    - You can change the volume level of the WAV file.  You should
  192.                take care using this - if you make the sample too loud,
  193.                something called "clipping" happens and it sounds awful.
  194.                Use the "Show" feature and make sure that you don't make
  195.                the sound so loud that any samples shown reach the top of 
  196.                the display window.
  197.                
  198.                If you make a sample very loud or soft, don't expect to be
  199.                able to change the volume back and have the same sound.  It
  200.                is similar to "washing out" the colors in a picture.  You
  201.                should try to keep the volume as high as possible without 
  202.                clipping.  Check the display after each function to make
  203.                sure the volume isn't too loud or soft.
  204.  
  205.                Take a WAV file and play around with the volume, it is useful
  206.                to see what it looks and sounds like at each step.
  207.  
  208.  
  209.    Continuous
  210.    Play      - Plays the current sound over and over.  Surf will shrink to
  211.                an icon during playback.  When you double-click on Surf's
  212.                icon, it stops playing.
  213.  
  214.    Smooth    - Attempts to "even out" sharp changes in consecutive samples.
  215.                This sort of "dampens" the sound, making it sound like it
  216.                was played in the next room or under a blanket.
  217.  
  218.    Hiss      - (Removing) Sets samples that are nearly "silent" to silence.
  219.                This has the effect of removing the hiss that can be heard
  220.                during long peiods of silence.  The Heavy, Medium, and Light
  221.                levels reflect what samples Surf will consider to be
  222.                "nearly-silent".  Note that if many samples are "silenced",
  223.                it can make the speaker "pop" during playback.  What happens
  224.                is that once the smaller samples are removed, the larger ones
  225.                that are left tend to "pop" the speaker abruptly.  This can
  226.                sometimes be worse than the hiss you were removing!  You'll 
  227.                hear what I mean if you try this on a few sounds.
  228.  
  229.                (Adding) This adds random values to the samples of the sound,
  230.                effectively creating hiss.
  231.  
  232.    Chorusing - This is bit like a varying echo.  The idea is to add layers 
  233.                of slight echo to give the impression that a "chorus" is 
  234.                present instead of a single sound source.  "Medium" effect 
  235.                usually has the best results.  Try doing this function 1-3
  236.                times, each on top of the last.  With a suitable sample, it
  237.                really can sound like a chorus.
  238.  
  239.    Inversion - This produces a sound like speaking in a room with concrete
  240.                walls.  It's quite a bit like playing the sample in a garage.
  241.                Even more so if you Invert the sound a second or third time.
  242.  
  243.    Phazer-
  244.    Chorus    - This is something of a mix between a phaser and the chorus
  245.                function.  Like inversion, it only sonds good with some
  246.                samples, others sound awful.
  247.  
  248.    Sample
  249.    Rate      - This is probably the most fun to play with.  You can change
  250.                the rate at which the samples are played.  This will slow 
  251.                down or speed up the pitch and length (timewise) of the 
  252.                sound.  As mentioned above, you should keep sample rates 
  253.                between 4000 Hz and 23,000 Hz.
  254.  
  255.    Shrink
  256.    Audio     - This can let you save some space with longer samples.  What
  257.                it does is remove every fourth sample and then decrease the
  258.                sample rate by 25%.  With some WAV files there is only a 
  259.                slight loss in quality, even when the file is "shrunk" 
  260.                2-3 times.  You'll have to decide if this quality-for-space 
  261.                tradeoff is useful for your files.
  262.  
  263.  
  264.  
  265.   Registering Surf
  266.   ----------------
  267.  
  268.   Remember, if you find yourself "just playing around" with Surf for fun,
  269.   you should register -- that's what it was designed for!
  270.   
  271.   You can register and get a license number for Surf in two ways:
  272.  
  273.     1. Send me $10.00 and I'll send you a license number.
  274.  
  275.       -OR-
  276.  
  277.     2. Send me $15.00 and I'll mail you a copy of the latest version.
  278.  
  279.  
  280.   Once you enter your license number, you won't have to see that 
  281.   registration reminder every so often, and your license will be valid 
  282.   for all future versions of Surf.
  283.  
  284.   Please send your registration as:
  285.  
  286.     a) a check in U.S. dollars (drawn on a U.S. bank)
  287.  
  288.     b) a money order (e.g. Canadian postal, Bundepost, etc.)
  289.  
  290.   Obviously you can send U.S. currency, but I don't want to be responsible
  291.   if the money gets "lost" on the way (although this has never happened in
  292.   the past).
  293.  
  294.   Print and fill-out the ORDER.FRM file and send to:
  295.  
  296.              James Bell
  297.              4511 Sherwood Trace
  298.              Gainesville, FL  32605
  299.  
  300.   Please contact me before you mail in your registration, there may be a way
  301.   to register via credit card, I may have moved, etc.  My phone number is:
  302.   (904) 372-3695.
  303.  
  304.   You should definitely try to contact me via phone or e-mail first, but I
  305.   promise that registrations sent to the Gainesville address will be
  306.   fulfilled (it just may take a few days longer).
  307.  
  308.   My Internet e-mail address is: jb1@cis.ufl.edu.
  309.  
  310.   Prices are subject to change.
  311.  
  312.  
  313.   The Future for Surf
  314.   -------------------
  315.  
  316.   Functions & features planned for later releases of Surf:
  317.  
  318.   * Pitch adjustment WITHOUT changing the length of the playback time.
  319.     In other words, shifting the frequencies up or down using Fourier
  320.     transform.  This function is already about 1/4 done.
  321.  
  322.   * Stereo and over 8-bit support (targeted for version 1.0).
  323.  
  324.   * Editing, mixing & inserting WAV files, clipboard cut and paste 
  325.     (targeted for version 1.0).
  326.  
  327.   * A specialized function to modify a WAV file so that it will sound
  328.     better when played through the Windows 3.1 PC-Speaker driver.
  329.  
  330.   * Converting mono into "pseudostereo" by putting right channel 
  331.     slightly out of phase with left (targeted for version 1.0).
  332.  
  333.   * Better noise reduction (also using Fourier transform mentioned 
  334.     above).  Ideally, giving you a digital graphic equalizer.
  335.  
  336.   * Perhaps some conversions from SND, VOC, AU, etc. formats to WAV.
  337.  
  338.  
  339.   Please don't hesitate if you have other ideas for this list, call me!
  340.  
  341.  
  342.   About Surf
  343.   ----------
  344.  
  345.   Surf was created with QuickC for Windows and the Windows 3.1 SDK.  Surf is
  346.   roughly 1600 lines of code, and it took about two months to create this
  347.   initial beta release.
  348.  
  349.   Surf is my second "major" Windows program.  I also wrote Statline, a handy
  350.   little status bar for Windows 3.x.  Statline can show you the date, time,
  351.   free memory, free system resources, etc.  It can also launch programs,
  352.   exit Windows quickly, keep a mini notepad, and more.  You can register 
  353.   both Statline and Surf together, see the ORDER.FRM file or call me for 
  354.   details.  End of plug.
  355.  
  356.   By the way, it has been noted that any sound editing/playback tool has 
  357.   the potential to damage either the user's hearing or playback equipment.
  358.   For example, a sound could have the volume increased to a large amount, 
  359.   then be played back through an amplifier.  The amp could conceivably 
  360.   "blow" the speaker or damage the eardrum.  I will not be held liable for 
  361.   this sort of mishap, even if the sound was a result of a Surf function.
  362.  
  363.  
  364.   About Me
  365.   --------
  366.  
  367.   I have a BS in Computer Information Science from the University of Florida
  368.   (class of '92).  If your company needs an experienced Windows (2 years) or
  369.   DOS (4 years) programmer, consider hiring me.  Just think what a waste
  370.   it'll be if I have to write boring programs for mainframes.
  371.  
  372.   If you are a programmer yourself, consider contacting me.  I'm giving 
  373.   quite a bit of thought to forming a "Shareware alliance" of several 
  374.   programmers under a single roof.  If you're spending more time sending out 
  375.   orders than programming, maybe this will interest you.
  376.   
  377.  
  378.   Thanks for using Surf
  379.  
  380.   James Bell                                                        06/15/92
  381.  
  382.  
  383.  
  384. P.S. Surf is Copyright (C) 1992 James Bell
  385.      "Windows" and "QuickC" are T.M. Microsoft Corp.
  386.      "SoundBlaster" is T.M. Creative Labs Inc.
  387.      Other trademarks mentioned are the property of their respective owners
  388.